@import './variable.scss';

/*定义滚动条宽高及背景，宽高分别对应横竖滚动条的尺寸*/

::-webkit-scrollbar {
    width: 5px;
    /*对垂直流动条有效*/
    height: 10px;
    /*对水平流动条有效*/
    border: 3px;
}


/*定义滚动条的轨道颜色、内阴影及圆角*/

::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    background-color: transparent;
    border-radius: 2px;
}


/*定义滑块颜色、内阴影及圆角*/

::-webkit-scrollbar-thumb {
    border-radius: 7px;
    -webkit-box-shadow: inset 0 0 6px #409EFF;
    background-color: #ccc;
}


/*定义两端按钮的样式*/

::-webkit-scrollbar-button {
    background-color: none;
}


/*定义右下角汇合处的样式*/

::-webkit-scrollbar-corner {
    background: none;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

input[type="number"] {
    -moz-appearance: textfield;
}

i {
    font-style: normal;
}

* {
    border: none;
    outline: none;
    margin: 0;
    padding: 0;
    // font-family: 微软雅黑 Regular;
    font-family: "Microsoft YaHei", 微软雅黑, "MicrosoftJhengHei", 华文细黑, STHeiti, MingLiu
}

.displayNone {
    display: none;
}

.fl {
    float: left;
}

li {
    list-style: none;
    text-align: left;
}

.fr {
    float: right;
}

// dataV 样式的修正
.dv-water-pond-level canvas {
    margin-left: 0 !important;
}

// 清爽表格样式
table.ljqyTable {
    width: 100%;
    max-width: 100%;
    font-size: 14px;
    text-align: center;
    color: $fColor2;
    border-spacing: 0;
    border-collapse: collapse;
    text-align: center;
    color: #fff;
    th {
        font-weight: normal;
        vertical-align: middle;
        background-color: #0a2732;
        border: 1px solid #003b51;
    }
    td {
        border: 1px solid #003b51;
        background-color: #003b51;
    }
}

.displayNone {
    display: none;
}

// 单行省略号
.ellip {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

// 前置小圆点样式
.preStyle {
    position: relative;
    padding-left: 10px;
    &::before {
        position: absolute;
        left: 0;
        top: calc(50% - 3px);
        content: '';
        display: inline-block;
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background-color: $color01;
    }
}

// hover样式
.hoverFont {
    &:hover {
        cursor: pointer;
        color: $color02;
    }
}

// echarts tooltips样式
// echarts tooltips样式
.selfToolTips {
    font-size: 14px;
    text-align: left;
    color: #eee;
    h3 {
        font-size: 16px;
    }
    &-name {
        color: #ddd;
    }
    &-value {
        color: #32c5ff;
        font-size: 16px;
        font-weight: 400;
    }
}

.mapTootip {
    font-size: 15px;
    text-align: left;
    color: #eee;
    // background: url("../imgs/tootip.png") center center no-repeat;
    // background: url("../imgs/qdfpdp/toolTip.png") center center no-repeat;
    background-size: 100% 100%;
    opacity: 1;
    // padding: 20px;
    h3 {
        font-size: 15px;
        font-weight: bold;
        height: 30;
        line-height: 30px;
    }
    p {
        height: 30px;
        line-height: 30px;
    }
    &-name {
        color: #000;
    }
    &-value {
        color: #32c5ff;
        font-size: 16px;
        // font-weight: 400;
    }
    &-unit {
        color: #000;
    }
}

.qdfpdpTootip {
    font-size: 15px;
    text-align: left;
    color: #eee;
    // background: url("../imgs/tootip.png") center center no-repeat;
    background: url("../imgs/qdfpdp/toolTip.png") center center no-repeat;
    background-size: 100% 100%;
    opacity: 1;
    padding: 10px;
    h3 {
        font-size: 15px;
        font-weight: bold;
        height: 30;
        line-height: 30px;
    }
    p {
        height: 30px;
        line-height: 30px;
    }
    &-name {
        color: #ddd;
    }
    &-value {
        color: #32c5ff;
        font-size: 16px;
        // font-weight: 400;
    }
    &-unit {
        color: #ddd;
    }
}

.selfBtn {
    cursor: pointer;
    height: 30px;
    line-height: 30px;
    padding: 0 15px;
    font-size: 16px;
    background-color: #2d919466;
    color: #fff;
    border-radius: 3px;
    transition: all 0.2s linear;
    &:hover,
    &.active {
        background-color: #00fff394;
        box-shadow: 0 0 20px #00fff394;
    }
}